<template>
  <a-card :bordered="false">
    <basic-form
      ref="loginLogForm"
      v-model="loginLogForm"
      :rules="loginLogRules"
      primary-key="loginLogId"
      :query-api="loginLog_queryByIdApi"
      :insert-api="loginLog_insertApi"
      :update-api="loginLog_updateApi"
    >
      <a-form-model-item label="登录名称" prop="loginUserName" ref="loginUserName" :hasFeedback="true">
        <a-input v-model="loginLogForm.loginUserName" placeholder="请输入登录名称"></a-input>
      </a-form-model-item>
      <a-form-model-item label="登录ip" prop="loginIp" ref="loginIp" :hasFeedback="true">
        <a-input v-model="loginLogForm.loginIp" placeholder="请输入登录ip"></a-input>
      </a-form-model-item>
      <a-form-model-item label="登录地址" prop="loginArea" ref="loginArea" :hasFeedback="true">
        <a-input v-model="loginLogForm.loginArea" placeholder="请输入登录地址"></a-input>
      </a-form-model-item>
      <a-form-model-item label="浏览器" prop="browser" ref="browser" :hasFeedback="true">
        <a-input :rows="4" type="textarea" v-model="loginLogForm.browser" placeholder="请输入浏览器"></a-input>
      </a-form-model-item>
      <a-form-model-item label="操作系统" prop="os" ref="os" :hasFeedback="true">
        <a-input :rows="4" type="textarea" v-model="loginLogForm.os" placeholder="请输入操作系统"></a-input>
      </a-form-model-item>
      <a-form-model-item label="登录日期" prop="createTime" ref="createTime" :hasFeedback="true">
        <a-input :rows="4" type="textarea" v-model="loginLogForm.createTime" placeholder="请输入登录日期"></a-input>
      </a-form-model-item>
    </basic-form>
  </a-card>
</template>
<script>
import {
  loginLog_queryByIdApi,
  loginLog_insertApi,
  loginLog_updateApi
} from "@/api/org/loginLog";
var loginLogRules = {};
export default {
  data() {
    return {
      loginLogRules,
      loginLog_queryByIdApi,
      loginLog_insertApi,
      loginLog_updateApi,
      loginLogForm: {
        loginLogId: this.$route.params.id
      }
    };
  }
};
</script>